<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intID = $_data["ID"];
$arrUser = getUserDataArrayByID($intID);
if($arrUser === false){
	ErrMsgOutputHTML("Error", "", 1);
}

if(sizeof($arrUser) == 0 || !preg_match("/,".$arrUser["MemberGroup"].",/", ",".$_stMemGroup.",")){
	header("Location: ".basename($_SERVER["PHP_SELF"])."?op=List");
	exit();
}

$fp = @file($strTemplatePath."Edit.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);

$fp = str_replace("{ShowName}", $arrUser["Name"], $fp);
$fp = str_replace("{ShowAccount}", $arrUser["Account"], $fp);
$fp = str_replace("{intID}", $intID, $fp);
$fp = str_replace("{Page}", $_data["Page"], $fp);
$fp = str_replace("{isLock}", $_data["isLock"], $fp);
$fp = str_replace("{isLockRadio".$arrUser["isLock"]."}", "checked", $fp);

while(list($k, $v) = each($_strOperator)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

$strGroup = getUserGroupSelectTag($arrUser["MemberGroup"], $_stMemGroup, "data[MemberGroup_x]", "");
$fp = str_replace("{GroupSelectTag}", $strGroup, $fp);

//輸出
WebOutputHTML($fp, 1);
?>